package com.th.supcom.pds.impl.manager.impl;

import java.util.List;

import net.carefx.fc.framework.db.manager.GetSequenceHelper;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import com.th.supcom.pds.domain.vo.InpPhamApplyDetailVO;
import com.th.supcom.pds.domain.vo.InpPhamDispenseDetailVO;
import com.th.supcom.pds.impl.dao.OrderExecMapper;
import com.th.supcom.pds.impl.manager.OrderExecManager;

/**
 * OrderExec 管理接口实现.
 * 
 * 医嘱拆分表.
 */
public class OrderExecManagerImpl implements OrderExecManager
{
    public static final String TAB_ORDER_EXEC = "ORDER_EXEC";

    private OrderExecMapper m_orderExecMapper;

    /** 序列生成器. */
    private GetSequenceHelper m_getSequenceHelper;

    /**
     * 默认的构造函数.
     */
    public OrderExecManagerImpl ()
    {

    }

    /**
     * 获取OrderExecMapper.
     * 
     * @return OrderExecMapper.
     */
    public OrderExecMapper getOrderExecMapper ()
    {
        return m_orderExecMapper;
    }

    /**
     * 注入OrderExecMapper.
     * 
     * @param orderExecMapper set orderExecMapper.
     */
    public void setOrderExecMapper (OrderExecMapper orderExecMapper)
    {
        m_orderExecMapper = orderExecMapper;
    }

    /**
     * 获取序列.
     * 
     * @return GetSequenceHelper
     */
    public GetSequenceHelper getGetSequenceHelper ()
    {
        return m_getSequenceHelper;
    }

    /**
     * 注入序列.
     * 
     * @param getSequenceHelper getSequenceHelper.
     */
    public void setGetSequenceHelper (GetSequenceHelper getSequenceHelper)
    {
        m_getSequenceHelper = getSequenceHelper;
    }

    @Override
    public List <InpPhamApplyDetailVO> findOrderExecListByExample (InpPhamApplyDetailVO inpPhamApplyDetailVO)
    {
        return m_orderExecMapper.findOrderExecListByExample (inpPhamApplyDetailVO);
    }

    @Override
    public List <InpPhamApplyDetailVO> findOrderContentByPaivisitAndOrderNo (List <InpPhamApplyDetailVO> detailVOList)
    {
        return m_orderExecMapper.findOrderContentByPaivisitAndOrderNo (detailVOList);
    }

    @Override
    public List <InpPhamDispenseDetailVO> findDispensePhamOrderContent (List <InpPhamDispenseDetailVO> list)
    {
        return m_orderExecMapper.findDispensePhamOrderContent (list);
    }

    /** 日志记录器. */
    public static final Logger s_logger = LoggerFactory.getLogger (OrderExecManagerImpl.class);

    /** 公司版权信息. */
    public static final String copyright = "Copyright 2014, TH Supcom Corporation";

    /** 提交路径. */
    public static final String SCC_BRANCH = "$URL$";

    /** 提交日期. */
    public static final String SCC_LAST_MODIFICATION_DATE = "$Date$";

    /** 最终修改人员. */
    public static final String SCC_LAST_MODIFIER_NAME = "$Author$";

    /** 最终版本号. */
    public static final String SCC_REVISION = "$Revision$";
}